#!/bin/bash


curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
make check
sleep 10
rm -rf wg
docker stop wangguan && docker rm wangguan
docker rmi wzh/wangguan
echo "此脚本由 awesome wzh 友情免费赞助----------------------------------------"
echo "下载依赖 git......................"
yum install -y git
echo "git 安装成功"
echo "git 安装成功------------------------------------"
echo "开始下载网关源码------------------------------"
git clone https://gitee.com/awesomecode/wg.git

ls
cd wg/
pwd
docker build -t wzh/wangguan .
docker run -d -p 5000:5000 --name=wangguan wzh/wangguan
echo "脚本来自与 风一样的男子 awesome wzh QQ:154710510"
sleep 5
docker logs wangguan







	



